package vip.ifmm.lehouse.common.model;

import lombok.Builder;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

@Builder
@ToString
public class Comment implements Serializable {

    private static final long serialVersionUID = 6037892100342098443L;

    private Integer commentId;

    private String commentUserNickname;

    private Integer commentUserId;

    private Integer commentCommodityId;

    private Integer commentStar;

    private Date commentCreateTime;

    private Date commentUpdateTime;

    private String commentWord;

    public Comment() {
    }

    public Comment(Integer commentId, String commentUserNickname, Integer commentUserId, Integer commentCommodityId, Integer commentStar, Date commentCreateTime, Date commentUpdateTime, String commentWord) {
        this.commentId = commentId;
        this.commentUserNickname = commentUserNickname;
        this.commentUserId = commentUserId;
        this.commentCommodityId = commentCommodityId;
        this.commentStar = commentStar;
        this.commentCreateTime = commentCreateTime;
        this.commentUpdateTime = commentUpdateTime;
        this.commentWord = commentWord;
    }

    public String getCommentWord() {
        return commentWord;
    }

    public void setCommentWord(String commentWord) {
        this.commentWord = commentWord;
    }

    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    public String getCommentUserNickname() {
        return commentUserNickname;
    }

    public void setCommentUserNickname(String commentUserNickname) {
        this.commentUserNickname = commentUserNickname == null ? null : commentUserNickname.trim();
    }

    public Integer getCommentUserId() {
        return commentUserId;
    }

    public void setCommentUserId(Integer commentUserId) {
        this.commentUserId = commentUserId;
    }

    public Integer getCommentCommodityId() {
        return commentCommodityId;
    }

    public void setCommentCommodityId(Integer commentCommodityId) {
        this.commentCommodityId = commentCommodityId;
    }

    public Integer getCommentStar() {
        return commentStar;
    }

    public void setCommentStar(Integer commentStar) {
        this.commentStar = commentStar;
    }

    public Date getCommentCreateTime() {
        return commentCreateTime;
    }

    public void setCommentCreateTime(Date commentCreateTime) {
        this.commentCreateTime = commentCreateTime;
    }

    public Date getCommentUpdateTime() {
        return commentUpdateTime;
    }

    public void setCommentUpdateTime(Date commentUpdateTime) {
        this.commentUpdateTime = commentUpdateTime;
    }
}